package com.cgy.utils.zookeeper.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;
import org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent;

import java.util.List;

/**
 * @author Administrator
 */
@Slf4j
@Setter
@Getter
@Accessors(chain = true)
public class NodeInfo {
    /**
     * 节点
     */
    private String node;
    /**
     * 地址
     */
    private String url;
    /**
     * 限制
     */
    private int limit = 5;


    /**
     * 数据
     */
    private String data;
    /**
     * 数据
     */
    private List<String> dataList;
    /**
     * 状态
     */
    private PathChildrenCacheEvent.Type status;

    private long czxid;
    private long mzxid;
    private long ctime;
    private long mtime;
    private int version;
    private int cversion;
    private int aversion;
    private long ephemeralOwner;
    private int dataLength;
    private int numChildren;
    private long pzxid;

}
